import request from '@/utils/request'
// 封禁用户
export function banUser(data) {
  return request({
    url: '/trafficfly-manager/user/info/ban',
    method: 'post',
    data
  })
}

// 注销用户
export function destroyUser(data) {
  return request({
    url: '/trafficfly-manager/user/info/delFlag',
    method: 'post',
    data
  })
}

// 所有封禁类型
export function getBanTypeDrop(params) {
  return request({
    url: '/trafficfly-manager/user/info/getBanTypeDrop',
    method: 'get',
    params
  })
}
// 所有状态
export function getAllStatus(params) {
  return request({
    url: '/trafficfly-manager/user/info/getStatusDrop',
    method: 'get',
    params
  })
}
// 获取用户封禁状态
export function getBanTypeByUserId(params) {
  return request({
    url: '/trafficfly-manager/user/info/getBanTypeByUserId',
    method: 'post',
    params
  })
}
// 获取用户实名信息
export function getIdCard(params) {
  return request({
    url: '/trafficfly-manager/user/info/getIdCard',
    method: 'get',
    params
  })
}

// 日历-获取城市数据
// 所有状态
export function getCityList(params) {
  return request({
    url: '/trafficfly-manager/schedule/getCityList',
    method: 'get',
    params
  })
}

// 日历-获取一天数据
export function getDay(data) {
  return request({
    url: '/trafficfly-manager/schedule/getDay',
    method: 'post',
    data
  })
}

// 日历-获取周或月数据
export function getMonthOrWeek(data) {
  return request({
    url: '/trafficfly-manager/schedule/getMonthOrWeek',
    method: 'post',
    data
  })
}

// 查询用户起提金额
export function configUser(data) {
  return request({
    url: '/trafficfly-manager/market/user/config',
    method: 'post',
    data
  })
}

// 设置用户提起金额
export function settingsUser(data) {
  return request({
    url: '/trafficfly-manager/market/user/settings',
    method: 'post',
    data
  })
}


